package cn.ibdsr.human.constant;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/2 13:11
 */
public enum GunsExceptionEnum implements GunsResultCode {
    WRITE_ERROR(500, "渲染界面错误"),
    ERROR_CONVER(10001, "对象转换ERROR"),
    ILLEGAL_ARGUMENT(10002, "非法参数"),
    ILLEGAL_ARGUMENT_NULL(10003, "参数不得为null"),
    ILLEGAL_ARGUMENT_NULL_ID(10004, "参数ID不得为null!"),
    ERROR_SELECT_IS_NULL(10005, "该数据已逃离地球,请重试"),
    SYSTEM_ERROR_INKNIWN_REASON(10006, "未知异常,请联系管理员"),
    FILE_READING_ERROR(400, "FILE_READING_ERROR!"),
    FILE_NOT_FOUND(400, "FILE_NOT_FOUND!"),
    FILE_DELETE_NOT_FOUND(600, "要删除的文件找不到"),
    REQUEST_NULL(400, "请求有错误"),
    SERVER_ERROR(500, "服务器异常");

    private int friendlyCode;
    private String friendlyMsg;
    private String urlPath;

    private GunsExceptionEnum(int code, String message) {
        this.friendlyCode = code;
        this.friendlyMsg = message;
    }

    private GunsExceptionEnum(int code, String message, String urlPath) {
        this.friendlyCode = code;
        this.friendlyMsg = message;
        this.urlPath = urlPath;
    }

    public int getCode() {
        return this.friendlyCode;
    }

    public void setCode(int code) {
        this.friendlyCode = code;
    }

    public String getMessage() {
        return this.friendlyMsg;
    }

    public void setMessage(String message) {
        this.friendlyMsg = message;
    }

    public String getUrlPath() {
        return this.urlPath;
    }

    public void setUrlPath(String urlPath) {
        this.urlPath = urlPath;
    }
}
